速報APP / 程式庫與試用程式 / KJV Bible Plugin

KJV Bible Plugin

價格:免費

更新日期:2016-04-10

檔案大小:2.0M

目前版本:3.1.0

版本需求:Android 1.5 以上版本

官方網站:https://www.facebook.com/ChristadelphianReadings?ref=hl

Email:readings.android@tekkies.co.uk

KJV Bible Plugin(圖1)-速報App

This plugin allows other Android apps to display Bible passages from the King James Version of the Bible.

App developers can integrate this with the following code:

== Show a passage in a new activity ==

Intent intent = new Intent(Intent.ACTION_VIEW);

intent.setType("vnd.android.cursor.item/vnd.uk.co.tekkies.bible.passage");

intent.putExtra("passage","Hebrews 11");

activity.startActivity(intent);

KJV Bible Plugin(圖2)-速報App

OR

== Content provider interface ==

String passageXml = "Error";

String[] row = new String[] { "passage" };

Cursor cursor = getActivity().getContentResolver().query(

Uri.parse("content://uk.co.tekkies.plugin.bible.kjv/passage/" + passage), row, "", row, "");

if (cursor.moveToFirst()) {

passageXml = cursor.getString(cursor.getColumnIndex("passage"));

}